import openai
#import os
#os.system("pip install openai==1.9.0")
openai.api_key = "sk-xxx"
openai.base_url = "https://key.wenwen-ai.com/v1/"
model ='gpt-3.5-turbo'
# create a chat completion
completion = openai.chat.completions.create(
  model=model, max_tokens=256,
  messages=[{"role": "user", "content": "你是谁"}]
)
# print the completion
print(completion.choices[0].message.content)